# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=govc
pkgver=0.29.0
pkgrel=0
pkgdesc="vSphere CLI built on top of govmomi"
url="https://github.com/vmware/govmomi/tree/master/govc"
arch="all"
license="Apache-2.0"
makedepends="go bash coreutils"
source="https://github.com/vmware/govmomi/archive/v$pkgver/govc-$pkgver.tar.gz"
builddir="$srcdir/govmomi-$pkgver/govc"
options="!check" # no tests provided

build() {
	go build -o "$builddir"/govc .
}

package() {
	install -Dm755 "$builddir"/govc "$pkgdir"/usr/bin/govc
}

sha512sums="
f43cdb8333775689ede39bc2f488433de1a8c6be9cffd534f50023557f5fde3bddc6f2ead88d9f23d0de3a7ed16191bc4daa1e7f31dceb80055feb202c94ab7e  govc-0.29.0.tar.gz
"
